import { http } from "@/utils/http/axios";

export function getPageList(params = {}) {
	return http.request<API.Response.BasicResponse>({
		url: "/monitor/logininfor/page",
		method: "GET",
		params
	});
}
// 统计登录日志
export function countData() {
	return http.request(
		{
			url: `/monitor/logininfor/statistics`,
			method: "GET"
		},
		{
			isTransformResponse: true
		}
	);
}
// 统计登录日志
export function countLoginInfoData(type: string) {
	return http.request(
		{
			url: `/monitor/logininfor/count/${type}`,
			method: "GET"
		},
		{
			isTransformResponse: true
		}
	);
}
